home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10059 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.unt.edu!news
  2. From: Steve Fogoros <sfogoros@hsc.unt.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help please: White background in text mode (Borland Turbo C)
  5. Date: Thu, 14 Mar 1996 23:57:19 -0800
  6. Organization: University of North Texas Health Science Center
  7. Message-ID: <314922DF.4F5D@hsc.unt.edu>
  8. References: <4iar74$l70@cs3.brookes.ac.uk>
  9. NNTP-Posting-Host: sfogoros.hsc.unt.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Krunchie wrote:
  16. > I am writing a program that needs to have black text on a white
  17. > background ( Using Borland Turbo C ). The nearest I can achieve is black
  18. > text on a light grey background which is not good enough!!
  19. > Does anybody know how I can achieve my goal? Is there some way I can
  20. > change the text mode background pallete of seven colours??
  21. > Thanks
  22. > Krunchie
  23. > Digital Dynamics - Dynamic Software solutions for a dynamic world
  24. > 95155580@brookes.ac.uk
  25.  
  26. If you use an ANSI color terminal, use
  27.  
  28.    printf("%c[30;47m",0x1b);
  29.  
  30. On PC make sure you have device=ansi.sys in config.sys. MS says meets ISO 
  31. 6429.
  32.  
  33. Other colors are:
  34.  
  35.  Foregnd Backgnd
  36.   30      40       Black
  37.   31      41       Red
  38.   32      42       Green
  39.   33      43       Yellow
  40.   34      44       Blue
  41.   35      45       Magenta
  42.   36      46       Cyan
  43.   37      47       White
  44.  
  45.  
  46. -- 
  47. Steve Fogoros, Academic Information Coordinator
  48. University of North Texas Health Science Center
  49. sfogoros@hsc.unt.edu
  50.